﻿@model Unijovem.UI.Models.FaleConoscoModel

@{
    ViewBag.Title = "Fale conosco";
}

<h3>Fale conosco</h3>

<div class="floatLeft">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fale Conosco</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Nome, new { @maxlength = 100 })
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descricao)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Descricao, 15, 70, new { maxlength = 1000 } )
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tipo)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Tipo, (SelectList)ViewBag.Tipos)
            @Html.ValidationMessageFor(model => model.Tipo)
        </div>

        <p>
            <input type="submit" value="Enviar" />
        </p>
    </fieldset>
}
</div>

<div class="floatRight" style="width:310px">
    @Html.Partial("~/Views/FaleConosco/Contato.cshtml")
</div>
